-- GENERATED SPELL FOR [Deepmoss Venomspitter] --


function spell0_4007(pUnit, Event) --@Toxic Spit,n/a--
pUnit:FullCastSpellOnTarget(7951,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4007', 2500, 1)
end

function Sorts_4007(pUnit, Event)
local choix_sorts_4007 = math.random(0, 0)
if choix_sorts_4007 == 0 then
pUnit:RegisterEvent('spell0_4007', 1, 1)
end
end

function mob4007_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4007', math.random(1500, 3000), 1)
end

function mob4007_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4007_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4007_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4007, 1, 'mob4007_Action')
RegisterUnitEvent(4007, 2, 'mob4007_Leave')
RegisterUnitEvent(4007, 3, 'mob4007_Kill')
RegisterUnitEvent(4007, 4, 'mob4007_Die')
